package com.lucky.demo.controller;

import com.lucky.common.base.BaseController;
import com.lucky.common.pojo.vo.AreaVO;
import com.lucky.common.service.CacheService;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/demo")
public class DemoCacheController extends BaseController {

	@Resource
	CacheService cacheService;

	@ResponseBody
	@RequestMapping("/cache")
	public AreaVO cache() {
		return cacheService.get("000000");
	}


}
